//
//  OutRentDetaiAPI.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/7/13.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "OutRentAdditionAPI.h"

@interface OutRentAdditionAPI()

@property (nonatomic,copy) NSString *carId;

@property (nonatomic,copy) NSString *rentType;
@property (nonatomic,copy) NSString *ownerName;
@property (nonatomic,copy) NSString *ownerTel;
@property (nonatomic,copy) NSString *startDate;
@property (nonatomic,copy) NSString *endDate;
@property (nonatomic,copy) NSString *rentFee;
@property (nonatomic,copy) NSString *protoco;

@end

@implementation OutRentAdditionAPI

- (instancetype)initWithCarId:(NSString *)carId {
    if (self = [super init]) {
        self.carId = carId;
        [self testDataAPI];
       
    }
    return self;
}

- (void)testDataAPI {
    self.carId = @"1";
    self.ownerTel = @"18520701023";
    self.ownerName = @"lianshenrong";
    self.rentFee = @"10000";
    self.startDate = @"2019-09-01";
    self.endDate = @"2019-09-01";
    self.protoco = @"http://11111";

}

- (NSString *)requestUrl {
    return @"message/car/addOutRent";
}



- (id)requestAppendArgument{
    AvoidNullString(self.protoco);
    return @{
                @"carId":self.carId,
                @"ownerName":self.ownerName,
                @"ownerTel":self.ownerTel,
                @"startDate":self.startDate,
                @"endDate":self.endDate,
                @"rentFee":self.rentFee,
                @"protocol":self.protoco,
            };
}



@end
